package teach.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import teach.aistar.mapper.PjMapper;
import teach.aistar.mapper.TalkMapper;
import teach.aistar.mapper.TestMapper;
import teach.aistar.model.entity.Talk;
import teach.aistar.service.ITalkService;

import java.util.List;

@Service
@Transactional
public class TalkServiceImpl implements ITalkService {

    @Autowired
    private PjMapper pjMapper;
    @Autowired
    private TalkMapper talkMapper;
    @Override
    public int insertP(Talk talk) {
        return  pjMapper.insertP(talk);
    }

    @Override
    public List<Talk> findAll() {
        return talkMapper.findAll();
    }


}
